package com.example.test.apollo.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OneContoller
 * @Description
 * @Author lichuanqi
 * @Date 2021/6/21 18:52
 * @Version 1.0
 **/

@RestController
public class OneController {
    @Value("${key1:null}")
    private String key1;

    @GetMapping("/getKey")
    public String getKey(){
        return key1;
    }
}
